<script setup>
import microApp from "@micro-zoe/micro-app";
const globalData = microApp.getGlobalData();
import config from "@/config";
const url = config.vue3 + "/child/findEnterprise/";
microApp.setData("childEnterprise", {
  token: "123456",
});
const handleDatachange = (e) => {
  let { activeIndex } = e.detail.data;
  console.log(activeIndex, "基座监听子应用datachange");
  localStorage.setItem("activeIndex", activeIndex);
};
</script>

<template>
  <div>
    <micro-app
      @datachange="handleDatachange"
      name="childEnterprise"
      :url="url"
      iframe
    ></micro-app>
    <!-- <micro-app
      :data="globalData"
      name="childEnterprise"
      url="http://localhost:3002/child/findEnterprise/"
      iframe
    ></micro-app> -->
  </div>
</template>

<style></style>